package com.challenge.smsweb.teachermanage;

import com.challenge.smsbase.Controller.GenericController;
import com.challenge.smsdao.teachermanage.domain.Teacher;
import com.challenge.smsservice.teachermanage.service.TeacherManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * HXY
 */
@RestController
@RequestMapping("teacher")
public class TeacherController extends GenericController<Teacher,Long, TeacherManager> {
    TeacherManager teacherManager;

    /**
     * setTeacherManager
     * @param teacherManager
     */
    @Autowired
    public void setTeacherManager(TeacherManager teacherManager){
        this.teacherManager = teacherManager;
        this.manager = this.teacherManager;
    }

}
